package base

import (
	"github.com/jackc/pgx"
	"github.com/jinzhu/gorm"
)

type DBService struct {
	ConnPool *pgx.ConnPool
	DB *gorm.DB
}

func NewDBService(pool *pgx.ConnPool, db *gorm.DB) *DBService {
	return &DBService{
		ConnPool: pool,
		DB: db,
	}
}
